/*    */ package eos.moe.dragoncore;
/*    */ 
/*    */ import blockbuster.BedrockScheme;
/*    */ import java.io.IOException;
/*    */ import java.io.InputStream;
/*    */ import java.nio.charset.StandardCharsets;
/*    */ import java.util.HashMap;
/*    */ import java.util.Map;
/*    */ import net.minecraft.client.Minecraft;
/*    */ import net.minecraft.client.resources.IResource;
/*    */ import net.minecraft.util.ResourceLocation;
/*    */ import org.apache.commons.io.IOUtils;
/*    */ 
/*    */ 
/*    */ 
/*    */ public class ov
/*    */ {
/* 18 */   public static ov q = new ov();
/* 19 */   private Map<String, BedrockScheme> g = new HashMap<>();
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */   
/*    */   public void v() {
/* 26 */     this.g.clear();
/*    */   }
/*    */   
/*    */   public BedrockScheme v(String str) {
/* 30 */     if (!this.g.containsKey(str)) {
/*    */       
/*    */       try {
/* 33 */         IResource iResource = Minecraft.func_71410_x().func_110442_L().func_110536_a(new ResourceLocation("dragoncore", "models/particle/" + str + ".json"));
/* 34 */         BedrockScheme bedrockScheme = v(iResource.func_110527_b());
/* 35 */         if (bedrockScheme != null) {
/* 36 */           this.g.put(str, bedrockScheme);
/*    */         } else {
/* 38 */           this.g.put(str, new BedrockScheme());
/*    */         } 
/* 40 */       } catch (Exception exception) {
/* 41 */         this.g.put(str, new BedrockScheme());
/* 42 */         System.out.println("缺失文件:" + str);
/* 43 */         exception.printStackTrace();
/*    */       } 
/*    */     }
/* 46 */     return this.g.get(str);
/*    */   }
/*    */ }


/* Location:              D:\fanbian\[D][龙之核心]DragonCore-2.6.0.3.jar!\eos\moe\dragoncore\ov.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */